import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryCompLifeList = async (json) => {
  let { data } = await axios.post(API_URL + "rCompLifeApi/queryCompLifeList", json);
  return data;
};

export const queryCompLife = async (json) => {
  let { data } = await axios.post(API_URL + "rCompLifeApi/queryCompLife", json);
  return data;
};




export const updateCompLife = async (json) => {
  let { data } = await axios.post(API_URL + "rCompLifeApi/updateCompLife", json);
  return data;
};


export const addCompLife = async (json) => {
  let { data } = await axios.post(API_URL + "rCompLifeApi/addCompLife", json);
  return data;
};



export const delCompLife = async (json) => {
  let { data } = await axios.post(API_URL + "rCompLifeApi/delCompLife", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rCompLifeApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}